/*
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2021-12-27 09:35:08
 * @LastEditors: GGB
 * @LastEditTime: 2021-12-30 13:45:33
 */
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
// 订单搜索
export type OrderParams = {
  search?: String;
};

// 核销记录搜索参数
export type VarifyParams = {
  search?: string;
  betweenTime?: string[];
  verify_code?: string;
};

// 售后参数
export type RefundParam = {
  search?: String;
};

// 修改价格
export type UpdatePriceType = {
  orderId: number;
  form: {
    order_price: number;
    express_price: number;
  };
};
// 订单发货
export type DeliveryType = {
  orderId: number;
  form?: {
    order_price?: number;
    express_no?: string;
  };
};
//  订单取消审核
export type ConfirmCancelType = {
  orderId: number;
  form: {
    status: 1 | 2; // //审核取消状态（1同意，2拒绝）
  };
};
// 申请取消订单
export type ApplyCancelType = {
  orderId: number;
};
// 后台通过订单ID一键核验
export type OrderVerifyType = {
  orderId: number;
};
// 后台通过核验码核验
export type VerifyType = {
  verifyCode: string;
};
// 订单详情
export type OrderDetailParam = {
  orderId?: string;
};
// 核销订单详情
export type VerifyDetailParam = {
  verifyCode?: string;
};
// 订单确认收货
export type ReceiptType = {
  orderId: number;
};
export type OrderPageParms = BasicPageParams & OrderParams;

export type OrderListGetResultModel = BasicFetchResult<any>;

export type VarifyPageParms = BasicPageParams & VarifyParams;
export type VarifyListGetResultModel = BasicFetchResult<any>;

// 售后

export type RefundPageParms = BasicPageParams & RefundParam;
export type RefundListGetResultModel = BasicFetchResult<any>;
